home *** CD-ROM | disk | FTP | other *** search
/ The Hacker Chronicles - A…the Computer Underground / The Hacker Chronicles - A Tour of the Computer Underground (P-80 Systems).iso / phrk4 / phrack37.7 < prev    next >
Text File  |  1992-09-26  |  26KB  |  590 lines

  1.       <:=--=:><:=--=:><:=--=:><:=--=:>\|/<:=--=:><:=--=:><:=--=:><:=--=:>
  2.       <:=--=:>                                                   <:=--=:>
  3.       <:=--=:>    >>>>>=-*  Users Guide to VAX/VMS  *-=<<<<<     <:=--=:>
  4.       <:=--=:>                                                   <:=--=:>
  5.       <:=--=:>                   Part II of III                  <:=--=:>
  6.       <:=--=:>                                                   <:=--=:>
  7.       <:=--=:>            Part C: Using the Utilities            <:=--=:>
  8.       <:=--=:>         Part D: Advanced Guide to VAX/VMS         <:=--=:>
  9.       <:=--=:>                                                   <:=--=:>
  10.       <:=--=:>                    By Black Kat                   <:=--=:>
  11.       <:=--=:>                                                   <:=--=:>
  12.       <:=--=:><:=--=:><:=--=:><:=--=:>/|\<:=--=:><:=--=:><:=--=:><:=--=:>
  13.  
  14.  Index
  15.  ~~~~~
  16. Part C contains information on the following topics:
  17.  
  18.    o  Help Utility       o  Phone Utility
  19.    o  Backup Utility     o  Library Utility
  20.    o  Mail Utility       o  Sort Utility
  21.  
  22. Part D contains information on the following topics:
  23.  
  24.    o  Subprocesses               o  DECnet
  25.    o  Attaching to a Process     o  Proxy Access
  26.    o  Interrupting a Process     o  Task-to-Task Communication
  27.    o  Batch Processing           o  Remote Printing
  28.    o  Controlling Batch Jobs     o  VAXclusters
  29.  
  30.                      <:=- Part C : Using the Utilities -=:>
  31.  
  32.  Help Utility
  33.  ~~~~~~~~~~~~
  34. The VAX/VMS Help Utility is almost like having a DCL dictionary online.  It
  35. includes an explanation of each DCL command and can optionally explain valid
  36. command parameters.  Help also provides information about other VAX/VMS
  37. utilities and system services.
  38.  
  39. There are two modes available for the help utility.  If you know the DCL
  40. command, utility or system service you want more information about, use direct
  41. mode.  If you don't know the command, use query mode.  Query mode can also be
  42. used to see which other commands and other subjects are referenced by the help
  43. utility.
  44.  
  45. To use query mode, just type HELP <enter> at the DCL command level.  Help will
  46. display an alphabetical listing of all DCL commands and other topics for which
  47. information is available and you will be prompted with:  "Topic?"
  48.  
  49. You can exit Help by pressing <enter> or <Ctrl-C> or <Ctrl-Z> or get
  50. information by typing in the command or subject name followed by <enter>.  When
  51. you request information on a command, Help will display details including how
  52. the command is invoked, what it does and the default values.  Most topics will
  53. have subtopics available which will be listed alphabetically followed by the
  54. prompt:  "COMMAND-NAME Subtopic?"
  55.  
  56. You can select subtopic help or press <enter> to return to the "Topic?" prompt.
  57. If you want to see all the information available on a command, type in "HELP
  58. command_name ..." or "HELP command_name *".
  59.  
  60. To use direct mode, enter HELP topic_name <enter>.  This will bypass the
  61. listing of available topic.  Additionally, you can enter a valid DCL command
  62. with or without qualifiers in this mode.  For example, to get information on
  63. the DCL SET command /TERMINAL qualifier, you could enter $ HELP SET TERMINAL.
  64. The help utility will provide information on the SET/TERMINAL command and
  65. prompt you for another subtopic since information on other qualifiers is
  66. available.
  67.  
  68. For more information and details on the help utility, you can use:
  69.    $ HELP HINTS   or   $ HELP HELP/INSTRUCTIONS.
  70.  
  71.  
  72.  Backup Utility
  73.  ~~~~~~~~~~~~~~
  74. The backup utility is usually used by system managers to back up system disks,
  75. insuring a recent copy of data should the system disks become unreliable.
  76. Generally, the system disks are backed up to magnetic tape or removable disk
  77. packs, which are then removed and stored in a save location offline.  Users may
  78. use the backup utility on files in their own accounts to make copies for safe
  79. keeping, transferring to another system, or for offline storage.
  80.  
  81. To use the backup utility, you have to decide what you want to back up, and how
  82. you want it done.  You have the following options:
  83.  
  84. Selective   :  Files are backed up according to a specified criteria.
  85.                Qualifiers (e.g. /DATE) and file specifications (e.g. *.TXT)
  86.                are used for specifying these criteria.
  87. File by File:  Individual files or entire file directories are backed up.
  88.                Directories are created when copying, unlike the copy command.
  89. Incremental :  Saves file created since the most recent backup.  Usually
  90.                performed by system operators.
  91. Physical    :  An exact duplicate of a volume is saved.  All file structures
  92.                are ignored and the copy is a bit-by-bit duplicate.
  93. Image       :  A functionally equivalent copy of the original volume is
  94.                created.  Typically done on bootable volumes and system disks.
  95.  
  96.  
  97. To back up files to a subdirectory:  $ BACKUP F1.TXT,F2.TXT,*.DAT [BY.JUNK]
  98.  
  99. To copy a directory tree:  $ BACKUP [dir...]file_spec [dir...]file_spec
  100.  
  101. To copy disk volumes:  $ MOUNT/FOREIGN DJA1:
  102.                        $ BACKUP/IMAGE DUA2: DUA1:
  103.  
  104. To copy to tape:       $ INITIALIXE MUA0: TAPE  (the first time its used)
  105.                        $ MOUNT/FOREIGH MUA0:
  106.                           MOUNT-I-MOUNTED, TAPE mounted on __MUA0:
  107.                        $ BACKUP [.DRV]MV_DYDRV.MAR MUA0:[]MV_DYDRV.MAR
  108.  
  109. A save set is a single file containing multiple files that have been backed up.
  110. To make a save set:
  111.  
  112.                        $ MOUNT/FOREIGN MUA0:
  113.                           MOUNT-I-MOUNTED, TAPE mounted on __MUA0:
  114.                        $ BACKUP DUB1:[BY.JUNK]*.*;* MUA0:08JUN.BAK/SAVE_SET
  115.  
  116. A single file can be retrieved from a save set by using the /SELECT qualifier.
  117. For example, to restore the file LOGIN.COM from the previously backed up save
  118. set:
  119.  
  120.                   $ MOUNT/FOREIGH MUA0:
  121.                      MOUNT-I-MOUNTED, TAPE mounted on __MUA0:
  122.                   $ BACKUP
  123.                  __From: MUA0:08:JUN.BAK/SAVE_SET/SELECT=[BY.JUNK]LOGIN.COM
  124.                  __To: *.*
  125.  
  126. Listing a save set:  $ MOUNT/FOREIGN MUA0:
  127.                         MOUNT-I-MOUNTED, TAPE mounted on __MUA0:
  128.                      $ BACKUP/LIST MUA0:08JUN.BAK/SAVE_SET
  129.  
  130. Selective backups:   $ BACKUP *.*/SINCE=12-APR-1988 MUA0:08JUN.BAK/SAVE_SET
  131.                      $ BACKUP
  132.                      __From: *.*/SINCE=12-APR-1988/EXCLUDE=[*.TMP,*.LOG]
  133.                      __To: MUA0:08JUN.BAK/SAVE_SET
  134.  
  135.  
  136. The following is a list of some other qualifiers you'll find useful.
  137.  
  138.  Qualifier  Function
  139.  ~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  140. /LOG        Writes log message to terminal as each backup file is written.
  141. /VERIFY     Verifies the copy or save set with the original after copy.
  142. /CONFIRM    Display each filename and ask for confirmation before copy.
  143. /DELETE     Deletes source file after destination file written.
  144.  
  145.  
  146.  Mail Utility
  147.  ~~~~~~~~~~~~
  148. When you receive new mail, a message will be sent to your terminal unless the
  149. /NOBROATCAST qualifier has been specified with the SET TERMINAL command.  Mail
  150. is an interactive utility that understands many commands in a format identical
  151. to DCL commands.  The utility is invoked by typing "$ MAIL" at the DCL command
  152. level.  Mail has a built in help feature which works the same way as the
  153. VAX/VMS Help Utility.  Mail may be sent interactively or directly.
  154.  
  155. Interactive implies the use of the mail utility in conversational mode by
  156. invoking mail at the DCL command level.  After invoking the mail utility, use
  157. the SEND command, and mail will prompt you for the name of the user(s) you want
  158. to send the mail to, your name, the subject, and the message text which you
  159. will terminate with <Ctrl-Z>.  When you press <Ctrl-Z> the message is sent and
  160. you are returned to the mail prompt where you can type EXIT to quit.
  161.  
  162. To send mail in direct mode from the DCL command line, use the following
  163. format:  $ MAIL file_spec user /SUBJECT="character string" where "file_spec"
  164. is a valid VAX/VMS file specification containing the body of your mail message
  165. and "user" is the name of a user on your local system or remote node.  The
  166. /SUBJECT qualifier is optional.
  167.  
  168. To send mail to multiple users (like a mailing list) create a file with a list
  169. of the account names of every user you want to receive the message.  Then enter
  170. @FILENAME at the "To:" prompt and each user listed in the distribution list
  171. will receive a copy of your mail.  A distribution list may also contain another
  172. distribution list by preceeding the second name with an at sign (@).  Comments
  173. are included by using an exclamation point (!).  The following is a sample
  174. distribution list:
  175.  
  176.   ! VAX.DIS
  177.   !
  178.   ! Staff
  179.   JONES
  180.   OPER
  181.   BYNON
  182.   !
  183.   ! Accounting personnel
  184.   @ACTLIST
  185.  
  186. To read your mail, just type MAIL <enter> and you will be told how many
  187. messages you have waiting.  Read is the default command, so you can just
  188. press <enter> to start reading them.  To reply to a message, use the REPLY or
  189. ANSWER commands and the mail utility will fill out the header information
  190. automatically.  You can store your mail in folders for later reference.  The
  191. system has three default folders (MAIL, NEWMAIL, and WASTEBASKET).
  192.  
  193. MAIL is the default mail folder and always exists.  It is used to store mail
  194. messages after you've read them unless you file these messages in other folders
  195. you've created.
  196.  
  197. The NEWMAIL folder stores mail messages before you read them, like a mailbox.
  198. They're automatically moved to the MAIL folder after you've read them unless
  199. you specify a different destination folder with the MOVE command.
  200.  
  201. The WASTEBASKET folder is a temporary folder used to store messages that have
  202. been deleted.  These messages remain in the WASTEBASKET folder until you exit
  203. the mail utility, at which time they're thrown out permanently.
  204.  
  205. To create new folders, select a message and enter the MOVE command.  If you
  206. attempt to move a message to a nonexistent folder, you'll be asked if you want
  207. to create a new folder.  For example:
  208.  
  209.    MAIL> 11
  210.    MAIL> MOVE MEMOS
  211.    Folder MEMOS does not exist. Create it (Y/N, default is N)? Y
  212.    MAIL-NEWFOLDER, folder MEMOS created MAIL>
  213.  
  214. The SELECT command allows you to move from one folder to another.  For example,
  215. if you type SELECT JUNK at the "MAIL>" prompt, you will be moved to the JUNK
  216. folder, and mail will respond with the number of messages contained in the new
  217. folder.
  218.  
  219. The DELETE command accepts a message number as a parameter or deletes the
  220. current message if a message number is not supplied.  To delete a folder, just
  221. delete all the messages in that folder with the DELETE qualifier /ALL.
  222.  
  223. To log a mail message to a file, use the EXTRACT qualifier.  If the /NOHEADER
  224. qualifier is used, the header information will not be included.  For example:
  225. EXTRACT/NOHEADER MEMO.TXT will save the currently selected message to a file
  226. named MEMO.TXT.
  227.  
  228. For more information on the mail utility, use mail's HELP command.
  229.  
  230.  
  231.  Phone Utility
  232.  ~~~~~~~~~~~~~
  233. The VAX/VMS Phone Utility allows you to talk to other users on your system.  It
  234. simulates a real telephone with such features as call holding, conference calls
  235. and telephone directories.  The Phone utility only works with VT100, VT200 or
  236. compatible terminals.
  237.  
  238. To call someone with the phone utility, enter "$ PHONE username" where username
  239. is the person you want to talk to.  Your screen will split horizontally in half
  240. and indicate that the phone utility is ringing the other person.  Your half of
  241. the conversation will be displayed on the top of the screen and the other
  242. person's will appear on the lower half.
  243.  
  244. The phone utility may also be used interactively by entering "$ PHONE", and you
  245. will now be given the phone prompt (%).  You can enter commands directly now
  246. (e.g. "% DIRECTORY").  The phone utility has an online help facility just like
  247. the mail utility.
  248.  
  249.  
  250.  Library Utility
  251.  ~~~~~~~~~~~~~~~
  252. Sometimes its easier to maintain a single file instead of a group of related
  253. files.  The VAX/VMS Library Utility lets you create and maintain a specially
  254. formatted file called a library in which you can store groups of single files
  255. called modules.  Predefined libraries include text, help, object, sharable
  256. image and macro.  Many VAX/VMS utilities such as HELP and LINK are capable of
  257. processing library files.  Unless you're a programmer or system manager,
  258. you'll probably only use text and help libraries.
  259.  
  260. To create a library use the LIBRARY command's /type qualifier and the /CREATE
  261. qualifier.  The /type qualifiers are:  /TEXT, /SHARE, /HELP, /OBJECT, /MACRO.
  262. For example to create a text library named BOOK.TLB:
  263.  
  264.    $ LIBRARY/TEXT/CREATE BOOK.
  265.  
  266. You may optionally specify a list of files to be included in a library when it
  267. is created.  For example:
  268.  
  269.    $ LIBRARY/TEXT/CREATE BOOK TOC,C1,C2,INDEX
  270.  
  271. To list the names of modules in a library, use the /LIST qualifier:
  272.  
  273.    $ LIBRARY/TEXT/LIST BOOK
  274.    Directory of TEXT library BOOK.TLB;1 on 12-JUN-1989 14:12:07
  275.    TOC
  276.    C1
  277.    C2
  278.    INDEX
  279.  
  280. You can also display a history of updates made to the library by using the
  281. /HISTORY qualifier with the /LIST qualifier.
  282.  
  283. To add modules to an existing library, use the /INSERT qualifier:
  284.  
  285.    $ LIBRARY/TEXT/INSERT BOOK CH3
  286.  
  287. To update a module in a library, do the following:
  288.  
  289.    o  Extract the module to be updated with the /EXTRACT qualifier.
  290.    o  Make the necessary changes.
  291.    o  Write over the old module with the /REPLACE qualifier.
  292.  
  293. For example:  $ LIBRARY/TEXT/EXTRACT BOOK CH2
  294.               $ EDIT CHAP2.TXT
  295.                 .
  296.                 .    (edit the file)
  297.                 .
  298.               $ LIBRARY/TEXT/REPLACE BOOK CH2
  299.  
  300.  
  301.  Sort Utility
  302.  ~~~~~~~~~~~~
  303. The VAX/VMS Sort Utility will reorganize records within a file.  The simplest
  304. form of the sort command will organize records in ascending alphabetical order.
  305. For example, to sort BOOK.TXT, you could issue the command:
  306.  
  307.    $ SORT BOOK.TXT SORTED.TXT
  308.  
  309. The Sort utility sorts on the first character of the field in each record in
  310. the input file.  If there is more than one field or column in a record, the
  311. entire record is ordered, not just the first field.
  312.  
  313. Here's an example of sorting in descending order numerically with multiple
  314. fields.  The sample data file JUNK.TXT contains two fields of data. The first
  315. field contains a name, and the second field, starting in column 9 contains the
  316. two-digit number we're sorting by:
  317.  
  318.    PAT     47
  319.    PAT     47
  320.    JIM     09
  321.    TOM     23
  322.    RICH    43
  323.    GARY    02
  324.    KURT    13
  325.    KEVIN   27
  326.  
  327. Sort the file:  $ SORT/KEY=(POSITION=9,SIZE=2,DESCENDING) JUNK.TXT SORTED.TXT
  328.  
  329. The sorted file (SORTED.TXT) will now look like this:
  330.  
  331.    PAT     47
  332.    RICH    43
  333.    KEVIN   27
  334.    TOM     23
  335.    KURT    13
  336.    JIM     09
  337.    GARY    02
  338.  
  339.  
  340.                   <:=- Part D : Advanced Guide to VAX/VMS -=:>
  341.  
  342.  Subprocesses
  343.  ~~~~~~~~~~~~
  344. A major benefit of the VAX/VMS operating system is its support of multi-
  345. processing.  This is not restricted to multiple users logged into different
  346. terminals however.  VAX/VMS users may create multiple processes known as
  347. subprocesses from within their main processes.
  348.  
  349. The DCL SPAWN command is used to create a subprocess.  The SPAWN command will
  350. create a subprocess with the attributes (default directory, privileges, memory,
  351. etc.) of its parent process unless otherwise specified.  For example:
  352.  
  353.    $ SPAWN
  354.    % DCL-S-SPAWNED, process BYNON_1 spawned
  355.    % DCL-S-ATTACHED, terminal now attached to process BYNON_1
  356.  
  357. In this case, the parent process is put into hibernation, the subprocess is
  358. given control of the keyboard, and we are left at the DCL prompt.  You can now
  359. enter any DCL commands, utilities, or other programs.  To return to the parent
  360. process, just $ LOGOUT of the subprocess:
  361.  
  362.    $ LOGOUT
  363.      Process BYNON_1 logged out at 12-JUL-1981 13:04:17.10
  364.    $ DCL-S-RETURNED, control returned to process BYNON
  365.  
  366. The SPAWN qualifier /NOLOG can be used to suppress the informational messages
  367. generated when a subprocess is created or logged out.  DCL Commands, procedures
  368. and VAX/VMS images (utilities and programs) may be executed directly with SPAWN
  369. by entering the correct syntax for the command or procedure after the SPAWN
  370. command.  For example:  $ SPAWN/NOLOG MAIL
  371.  
  372. If you have a task that can execute without user intervention (e.g. a program
  373. compiler), you can spawn a task to run as a background process to your current
  374. process.  For example: $ SPAWN/NOWAIT FORTRAN VAXBBS
  375.  
  376. The SPAWN qualifier /NOWAIT spawns the task to run concurrently (parallel) to
  377. the parent process.  Both processes will share the terminal and any messages
  378. >from the background task will be displayed at the terminal.  To avoid possible
  379. conflicts, use the /OUTPUT qualifier:
  380.  
  381.    $ SPAWN/NOWAIT/OUTPUT=COMPILE.LOG FORTRAN.VAXBBS
  382.  
  383. When the job in the subprocess is complete it will terminate and be removed
  384. >from the system.
  385.  
  386.  
  387.  ATTACHing to a Process
  388.  ~~~~~~~~~~~~~~~~~~~~~~
  389. You can use the DCL ATTACH command to connect your keyboard to any process or
  390. subprocess you've created.  To exit from BYNON_1 back to BYNON with the ATTACH
  391. command, enter "$ ATTACH BYNON" and the subprocess hibernates while you are
  392. returned to the parent process.
  393.  
  394.  
  395.  Interrupting a Process
  396.  ~~~~~~~~~~~~~~~~~~~~~~
  397. You can interrupt a process at anytime to create a subprocess by pressing
  398. <Ctrl-Y> and then using the SPAWN command.  When you're done working with the
  399. subprocess and have returned to the interrupted process, type CONTINUE to start
  400. processing again where you left off.  Some VAX/VMS utilities, such as MAIL,
  401. support SPAWN intrinsically, so you can spawn a process within these utilities
  402. by entering the SPAWN command without pressing <Ctrl-Y> first.
  403.  
  404.  
  405.  Batch Processing
  406.  ~~~~~~~~~~~~~~~~
  407. The SUBMIT command was briefly discussed in Part II: Programming the VAX.  A
  408. batch job is one or more DCL command procedures that execute from a detached
  409. process with your privileges and quotas.  The controller of the process is the
  410. batch queue which accepts jobs via the SUBMIT command.  Batch jobs execute
  411. without user interaction, permitting you to use your terminal for interactive
  412. work while the system executes the batch job (command procedure).  Batch jobs
  413. are used to execute tasks that take a long time to run, use many system
  414. resources, or need to be scheduled to execute at a specific time.
  415.  
  416. The SUBMIT command will enter a command procedure to the default batch queue
  417. (SYS$BATCH) if a specific queue is not provided.  A command procedure submitted
  418. for batch execution is given a job name which defaults to the command procedure
  419. name unless otherwise specified.  The entry number given to the job is used to
  420. control it (delete, rename, etc.)
  421.  
  422.  
  423.  Controlling Batch Jobs
  424.  ~~~~~~~~~~~~~~~~~~~~~~
  425. You can specify a name for a batch job with the /NAME qualifier:
  426.  
  427.    $ SUBMIT BACKUP /NAME=DAILY_BACK
  428.  
  429. You may also execute more than one command procedure by separating the
  430. procedure names with a comma:
  431.  
  432.    $ SUMBIT SORT_DATA,REPORT /NAME=WEEKLY_REPORT
  433.  
  434. To schedule a batch job to execute after a specific time:
  435.  
  436.    $ SUMBIT CLEANUP /AFTER=11:40
  437.    Job CLEANUP (queue SYS$BATCH, entry 39) holding until 1-JUN-1989 11:40
  438.  
  439. To hold a job in the queue to be released later:
  440.  
  441.    $ SUMBIT REMINDER /HOLD
  442.    Job REMINDER (queue SYS$BATCH, entry 12) holding
  443.    $
  444.    $ SET QUEUE/ENTRY=32/RELEASE SYS$BATCH
  445.  
  446. To submit a job to a different queue:  $ SUBMIT TESTJOB /QUEUE=SLOW
  447.  
  448. To lower the priority (e.g. if it's CPU intensive):
  449.  
  450.    $ SUBMIT CRUNCH /PRIORITY=2
  451.  
  452. To pass parameters:  $ SUBMIT COMPILE / PARAMETERS=(WINDOWS,MISC,DISP_IO)
  453.  
  454. To disable the automatic printing of the batch job's log (file instead):
  455.  
  456.    $ SUBMIT GOJOB /NOPRINT /LOG_FILE=DUA2:[BYNON]
  457.  
  458. This will create a file DUA2:[BYNON]GOJOB.LOG.  If the /NOPRINT qualifier is
  459. not specified, the log file will be printed and deleted.  To print and keep the
  460. log file, use the /KEEP qualifier with the /LOG_FILE qualifier.
  461.  
  462. After you submit a procedure to a batch queue, you can monitor its status and
  463. job characteristics by using the SHOW QUEUE command.  This will display the
  464. name, entry number and status of all the jobs you have in queue.  The /ALL
  465. qualifier will display all jobs you have enough privilege to see, and the /FULL
  466. qualifier provides more information about jobs, such as operating
  467. characteristics and submission time.
  468.  
  469. You can use the SET QUEUE/ENTRY command to modify a job's priority
  470. (/PRIORITY), name (/NAME), or status (/RELEASE or /AFTER).  For example:
  471.  
  472.    $ SET QUEUE /ENTRY=217 /PRIORITY=2 SYS$BATCH
  473.  
  474. Use the DELETE /ENTRY command to delete jobs:  $ DELETE /ENTRY=18 SYS$BATCH
  475.  
  476.  
  477.  Using DECnet
  478.  ~~~~~~~~~~~~
  479. DECnet uses the standard VAX/VMS file specifications for remote file access.
  480. In addition to a node specification, you may also include access control
  481. information (username and password) in quotes.  For example:
  482.  
  483.     BURG"JONES MYPW"::DUA2:JUNK.TXT
  484.      |     |    |       |     |
  485.      |     |    |       |     +---- Filename.Extension
  486.      |     |    |       |
  487.      |     |    |       +---------- Device name
  488.      |     |    |
  489.      |     |    +------------------ Password
  490.      |     |
  491.      |     +----------------------- Username
  492.      |
  493.      +----------------------------- Node name
  494.  
  495. Unless a specific DECnet account exists on the host node, or proxy exists, you
  496. must supply access control information to execute a command on a remote system.
  497. (e.g. $ TYPE BURG""JONES MYPW"::DUA2:JUNK.TXT)
  498.  
  499.  
  500.  Proxy Access
  501.  ~~~~~~~~~~~~
  502. Because including access control information in a command string is a security
  503. risk, Digital provides proxy access, which works by keeping a database of users
  504. and hosts who may gain access to the system via DECnet.  The format of the
  505. database is: SYSTEM::REMOTE_USERNAME LOCAL_USERNAME.
  506.  
  507.  
  508.  Task-to-Task Communication
  509.  ~~~~~~~~~~~~~~~~~~~~~~~~~~
  510. This is a feature of DECnet which allows programs on one system to communicate
  511. with programs on another (e.g. the DCL TYPE command)  To execute a procedure on
  512. a remote system, use the TYPE command with the TASK=xxx parameter.  For
  513. example:
  514.  
  515.    $ TYPE VAX1::"TASK=SHOW_USERS"
  516.  
  517. To show the users on a remote system you would write a command procedure
  518. something like this:
  519.  
  520.    $! Show_Users.Com
  521.    $!
  522.    $      IF FMODE() .EQS. "NETWORK" THEN GOTO NETWORK
  523.    $      SHOW USERS
  524.    $      EXIT
  525.    $  NETWORK:
  526.    $      DEFINE/USER_MODE SYS$OUTPUT SYS$NET
  527.    $      SHOW USERS
  528.    $      EXIT
  529.  
  530. Since SYS$OUTPUT is redirected to SYS$NET, the output is redirected to your
  531. terminal over DECnet.  Task-to-Task communication can be simple (like
  532. Show_Users) or complicated (like programs passing data back and forth).
  533.  
  534.  
  535.  Remote Printing
  536.  ~~~~~~~~~~~~~~~
  537. If your DECnet network contains a LAN such as Ethernet, you'll probably have to
  538. share printers with other nodes on the network.  The easiest way to print a
  539. file is to copy it directly to the print device.  This works fine as long as
  540. the device is spooled and set up with world write privileges.  For example:  $
  541. COPY JUNK.TXT BURG::LCA0:  will copy the file JUNK.TXT to the device LCA0: on
  542. node BURG.
  543.  
  544. Another way to print is to use the DCL PRINT/REMOTE command.  However, the file
  545. must be located on the remote system to use this, which is inconvenient if the
  546. file you're printing is on the local system.  You can still do it though:
  547.  
  548.    $ COPY JUNK.TXT BURG::[BYNON]
  549.    $ PRINT /REMOTE BURG::[BYNON]JUNK.TXT
  550.       Job JUNK (queue SYS$PRINT, entry 512) started on LCA0
  551.    $ DELETE BURG::[BYNON]JUNK.TXT
  552.  
  553.  VAXclusters
  554.  ~~~~~~~~~~~
  555. The main purpose of a VAXcluster is high processor ability, shared resources,
  556. and a single security and management area.  There are two basic type of
  557. VAXclusters, heterogeneous and homogeneous, but a mix of the two is possible.
  558. The main difference between these types is how they share resources,
  559. specifically the VAX/VMS OS environment.
  560.  
  561. The VAX/VMS OS environment is identical on each cluster in a homogeneous
  562. VAXcluster.  This is done by using a common system disk for all the nodes.
  563. User accounts, system files, queues and storage devices are shared, and all of
  564. the computers behave the same way.
  565.  
  566. In a heterogeneous VAXcluster, the environment on each system is different.
  567. Each VAX has its own system disk, user accounts and system files.  Queues and
  568. storage devices may or may not be shared.  Users can work in different
  569. operating environments, depending on the system they're using.
  570.  
  571. Usually a VAXcluster is accessed by an Ethernet-based terminal server.  Using
  572. a terminal server, a user can establish a session with any VAXcluster member,
  573. and the connection is identical to that of a directly connected terminal.
  574. However, terminal sessions can support multiple simultaneous sessions to
  575. different nodes.  In the unlikely event that a VAXcluster is set up with
  576. directly connected terminals and you need to access a different system, you
  577. can DECnet via the SET HOST facility.  All VAXcluster systems support DECnet
  578. within the cluster.
  579.  
  580. VAXcluster members (nodes) often share processing resources through the use
  581. of print and batch queues known as cluster-wide queues, which are used the
  582. same as a normal queue.  The only extra information you need is the queue
  583. name.  A list of all the queues in a cluster can be called up with the DCL
  584. SHOW QUEUE command.  If you submit a job to a cluster-wide queue, you must
  585. insure that the node on which it resides has access to the file you want to
  586. print or the command procedure you want processed.
  587.  
  588.  
  589. Downloaded From P-80 International Information Systems 304-744-2253 12yrs+
  590.